<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=utf-8"	import="java.util.*" pageEncoding="utf-8"%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
	<head>
		<title>会员中心</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<jsp:include page="/jsp/common/include.jsp"></jsp:include>
		<script type="text/javascript"> 
		$(function () {  
			var skin =$.cookie("skin");
			
			if(skin)
			{
				$("#skin_src").attr("href",skin);
			}
			else
			{				 
				$("#skin_src").attr("href",Skins["default"]);
			}
			
			//使主IFRAME自适应网页高度
			$("#member-main-frame").load(function(){
				  document.getElementById("member-main-frame").style.height="0px";
				  if($.browser.mozilla || $.browser.msie)
				  {  
			          bodyHeight =window.frames["member-main-frame"].document.body.scrollHeight;  
			      }
				  else
				  {  			         
			          bodyHeight = document.getElementById("member-main-frame").contentWindow.document.documentElement.scrollHeight;			           
			      }  				  
			     document.getElementById("member-main-frame").style.height=(bodyHeight+20)+"px";  
			     $(".Morinda-member-navigation").css("height",(bodyHeight+20)+"px");
			});
			
		});
		
		extendFrame=function(){
			  document.getElementById("member-main-frame").style.height="0px";
			  if($.browser.mozilla || $.browser.msie)
			  {  
		          bodyHeight =window.frames["member-main-frame"].document.body.scrollHeight;  
		      }
			  else
			  {  			         
		          bodyHeight = document.getElementById("member-main-frame").contentWindow.document.documentElement.scrollHeight;			           
		      }  				  
		     document.getElementById("member-main-frame").style.height=(bodyHeight+20)+"px"; 
		}
		</script>
		<script>
		/**
		 * 回到页面顶部
		 * @param acceleration 加速度
		 * @param time 时间间隔 (毫秒)
		 **/
		function goTop(acceleration, time) {
			acceleration = acceleration || 0.1;
			time = time || 16;
		 
			var x1 = 0;
			var y1 = 0;
			var x2 = 0;
			var y2 = 0;
			var x3 = 0;
			var y3 = 0;
		 
			if (document.documentElement) {
				x1 = document.documentElement.scrollLeft || 0;
				y1 = document.documentElement.scrollTop || 0;
			}
			if (document.body) {
				x2 = document.body.scrollLeft || 0;
				y2 = document.body.scrollTop || 0;
			}
			var x3 = window.scrollX || 0;
			var y3 = window.scrollY || 0;
		 
			// 滚动条到页面顶部的水平距离
			var x = Math.max(x1, Math.max(x2, x3));
			// 滚动条到页面顶部的垂直距离
			var y = Math.max(y1, Math.max(y2, y3));
		 
			// 滚动距离 = 目前距离 / 速度, 因为距离原来越小, 速度是大于 1 的数, 所以滚动距离会越来越小
			var speed = 1 + acceleration;
			window.scrollTo(Math.floor(x / speed), Math.floor(y / speed));
		 
			// 如果距离不为零, 继续调用迭代本函数
			if(x > 0 || y > 0) {
				var invokeFunction = "goTop(" + acceleration + ", " + time + ")";
				window.setTimeout(invokeFunction, time);
			}
		}
	</script>
	<style>
	.top_clearfix:after{
		content: ".";
		display: block;
		height: 0;
		clear: both;
		visibility: hidden;
	}
	.top_clearfix{
		max-width: 1200px;
		margin-left: auto;
		margin-right: auto;
	}
	.go_top{
		position: fixed;
		left: 100%;
		top: 420px;
		margin-left: -40px;
		width: 30px;
		height: 30px;
		line-height: 26px;
		border-radius: 50%;
		font-family: "w3cplus";
		text-align: center;
		font-size: 16px;
		background-color: #fff;
		border: 3px solid #3ed4e5;
		z-index: 60;
	 }
	/*
	 .scrollup{
	 	bottom: 20px;
		right: 20px;
		height: 38px;
		width: 38px;
		background: url(${basePath}resource/images/top.png) no-repeat;
	 }
	 */
	</style>
	</head>
	<body class="Morinda-member"> 
		 <jsp:include page="/jsp/common/header.jsp"></jsp:include>
		 <jsp:include page="/jsp/common/member_banner.jsp"></jsp:include>
		 <div class="Morinda-member-body Morinda-body-width">	
	  		<div class="Morinda-member-left">
	  			<jsp:include page="/jsp/common/member_left.jsp"></jsp:include></div>
	  		<div class="Morinda-member-center">
	  			<div class="Morinda-member-frame">
					<iframe  id="member-main-frame" src="${basePath}jsp/admin/QqEmailList.jsp" name="member-main-frame" frameborder=0  scrolling=no ></iframe>
	  			</div>
	  		</div>
		</div>
		
		<div class="top_clearfix">
			<div class="go_top">
				<a href="javascript:void(0);" onclick="goTop(this,3000);return false;">TOP</a>
			</div>
		</div>
		
		<jsp:include page="/jsp/common/footer.jsp"></jsp:include>
		 
	</body>
</html>